﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Brain
{
    public static class NameUtil
    {
        private static int u;
        /// <summary>
        /// Gets an unique name, no matter what the start you specify.
        /// Only works until called 2147483647 times, then the name is not unique
        /// (and probably the app have been running for too much time ;) )
        /// </summary>
        /// <param name="start"></param>
        /// <returns></returns>
        public static string GetUniqueName(string start)
        {
            u++;
            return start + u;
        }
    }
}
